package CH7.匿名类;


public class A {
    void f(){
        System.out.println("A：f");
    }
}

class B extends A{
    void f(){
        System.out.println("B：f");
    }
}

interface  C {
   void  ff();
}
  class D implements C{
    @Override
    public void ff() {
        System.out.println("D：ff");
    }/**/
}
class Test{
    public static void main(String[] args) {
    /*    A aa=new A();
        aa.f();

        B bb=new B();
        bb.f();

        new A(){
*//*            void f(){
                System.out.println("???：f");
            }*//*
        };*/

        D dd=new D();
        dd.ff();

       new C(){
          public void ff() {
            System.out.println("****：ff");
        }/* */
       }.ff();
    }
}